package com.etone.smartAudit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etone.smartAudit.domain.Dictionary;
import com.etone.smartAudit.vo.dictionary.DictionaryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: sovy
 * @date: 2020/8/4
 * @description: 数据字典
 */
@Mapper
public interface DictionaryMapper extends BaseMapper<Dictionary> {
    Dictionary findByCode(@Param("code") String code);

    List<DictionaryVO> findByCodes(@Param("codes") List<String> codes);

    int updateByCode(@Param("code") String code, @Param("value") String value);
}
